﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Matricula_Cadastro.aspx.cs"
    Inherits="ProjetoJornada.Interno.Matricula_Cadastro" Title="Cadastrar Matricula" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <script src="../javascript/validacao_mascara.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 151px;
        }
        .style2
        {
            width: 202px;
        }
        .style3
        {
            width: 12px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table id="formulario" style="width: 100%;">
                <tr>
                    <td colspan="2" align="left">
                        <asp:Label ID="lblMensagem" ForeColor="Red" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left">
                        <strong>Escolha um aluno para fazer uma matrícula</strong>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        <asp:Label ID="Label2" runat="server" Text="CPF" AssociatedControlID="CPFTextBox"></asp:Label>
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="CPFTextBox" runat="server" MaxLength="14" TabIndex="2" onKeyDown="Mascara(this,Cpf);"
                            onKeyPress="return somenteNumeros(event); Mascara(this,Cpf);" onKeyUp="Mascara(this,Cpf);"></asp:TextBox>
                        <asp:ImageButton ID="ImageButton2" ImageUrl="~/imagens/lupa_cep.png" Width="24px"
                            Height="24px" runat="server" OnClick="ImageButton2_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan ="2">
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                            <ProgressTemplate>
                                <asp:Image ID="imgLoading" ImageUrl="~/imagens/ajax-loader.gif" runat="server" />
                                Carregando...
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>                
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ImageButton2" />
                    </Triggers>
                    <ContentTemplate>
                        <tr style="margin-top: 20px;">
                            <td colspan="2" class="style1 alinhamentoDireita">
                                <asp:Table ID="TableAluno" runat="server">
                                    <asp:TableRow>
                                        <asp:TableCell>
                                            <asp:Label ID="Label1" runat="server" Text="Nome: " ForeColor="#00CC00" Font-Bold="True"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:Label ID="lblNome" runat="server" Text=""></asp:Label>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell>
                                            <asp:Label ID="Label3" runat="server" Text="Email: " ForeColor="#00CC00" Font-Bold="True"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:Label ID="lblEmail" runat="server" Text=""></asp:Label>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                </asp:Table>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:GridView ID="gdvTurma" runat="server" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:BoundField AccessibleHeaderText="Turmas" DataField="Nome" HeaderText="Turmas Matriculadas" />
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="style1 alinhamentoDireita">
                                <br />
                                <asp:Label ID="lblPergunta" runat="server" Text="Qual(is) curso(s) que você deseja se inscrever?"></asp:Label>
                                <br />
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="style1 alinhamentoDireita">
                                <asp:CheckBoxList ID="cblTurmas" runat="server">
                                </asp:CheckBoxList>
                                <br />
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                &nbsp;
                            </td>
                            <td class="style2">
                                <asp:ImageButton ID="MatricularImageButton" ImageUrl="~/imagens/add.png" runat="server"
                                    TabIndex="18" OnClick="MatricularImageButton_Click" />
                            </td>
                        </tr>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
